from pathlib import Path

name = '张三'
age = 18
weight = 124.5
print("你好 %s" % name)
print("你好 %s, 今年 %d岁" % (name, age))
print("你好 %s, 今年 %d岁，体重 %0.2f 斤" % (name, age, weight))

print("路径如下：")
print(Path(__file__))
print(Path(__file__).parent)
print(Path(__file__).resolve().parent.parent)